home *** CD-ROM | disk | FTP | other *** search
- ;
- ; ********************************
- ;
- ; File example file for Pure Basic
- ;
- ; © 1999 - Fantaisie Software -
- ;
- ; ********************************
- ;
- ;
-
- InitFile(0)
-
- If CreateFile(0,"ram:PureBasic.test") ; Create a file and put some text in it.
- ;
- WriteStringN("Hello I'm Pure Basic") ;
- WriteStringN("What do you think of me ?") ;
-
- CloseFile(0)
- Endif
-
-
- If ReadFile(0,"ram:PureBasic.test'")
-
- PrintN("Displaying file 'Ram:PureBasic.test")
-
- PrintN(ReadString())
- PrintN(ReadString())
- Endif
-
- MouseWait()
-
- End ; File is automagically closed at the end.
-